package ru.reaperoq.inventory.components.button

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp

@Composable
fun BigButton(
    modifier: Modifier = Modifier,
    onClick: () -> Unit,
    enabled: Boolean = true,
    content: @Composable () -> Unit
) {
    Box(
        modifier,
        contentAlignment = Alignment.Center
    ) {
        Button(
            modifier = Modifier
                .height(50.dp)
                .clip(MaterialTheme.shapes.medium)
                .fillMaxWidth(.8f),
            onClick = onClick,
            enabled = enabled
        ) {
            content()
        }
    }
}